package com.item.service;

import com.item.dao.PersonMapper;
import com.item.dao.model.CartKey;
import com.item.dao.model.Person;
import com.item.dao.model.PersonExample;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PersonService {
    @Autowired
    private PersonMapper personMapper;

    private static final Logger logger = Logger.getLogger(PersonService.class);

    public int countByExample(PersonExample example) {
        return this.personMapper.countByExample(example);
    }

    public Person selectByPrimaryKey(String id) {
        return this.personMapper.selectByPrimaryKey(id);
    }

    public List<Person> selectByExample(PersonExample example) {
        return this.personMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.personMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Person record) {
        return this.personMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Person record) {
        return this.personMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(PersonExample example) {
        return this.personMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(Person record, PersonExample example) {
        return this.personMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(Person record, PersonExample example) {
        return this.personMapper.updateByExample(record, example);
    }

    public int insert(Person record) {
        return this.personMapper.insert(record);
    }

    public int insertSelective(Person record) {
        return this.personMapper.insertSelective(record);
    }
}